<a class="item item-icon-left item-icon-right" ng-if="isLeaf(item)" href="#/{{preHref+'-'+item._id}}">
  <i class="icon {{leafIcon}} dark2"></i>
  {{item[textField]}}
  <i class="icon ion-ios-arrow-right"></i>
</a>

<div class="item item-has-children" ng-if="!isLeaf(item)">
  <div class="row">
    <div class="col item item-icon-left" ng-click="itemExpended(item, $event);">
      <i class="icon dark2 {{getItemIcon(item)}}"></i>
      {{item[textField]}}
    </div>
    <a class="button button-col button-icon item-icon-right" href="#/{{preHref+'-'+item._id}}">
      <i class="dark2 icon ion-ios-arrow-right"></i>
    </a>
  </div>


  <div class="list sub-list" ng-if="!isLeaf(item)" ng-show="item.$$isExpend">
    <div class="item-wrapper" ng-repeat="item in item.children" ng-include="recursionTemplate"></div>
  </div>
</div>
